@import '../../styles/radio';

.s-radio {
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  font-size: $radio-size;
  &__icon-wrap {
    flex: none;
  }

  &--horizontal {
    margin-right: $padding-medium;
  }

  &--last {
    margin-right: 0;
  }

  &__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #c4c4c4;
    text-align: center;
    font-size: $radio-icon-size;
    transition-property: color, border-color, background-color;
    transition-duration: $radio-transition-duration;
    &--checked {
      color: $color-primary;
    }
    &--disabled {
      color: $radio-disabled-icon-color;
      .s-radio__icon--checked {
        color: $radio-disabled-icon-color;
      }
    }
  }

  &__label {
    word-wrap: break-word;
    padding-left: $radio-label-margin;
    color: $radio-label-color;
    line-height: $radio-size;

    &--left {
      float: left;
      padding: 0 $radio-label-margin 0 0;
    }

    &--disabled {
      color: $radio-disabled-label-color;
    }

    &:empty {
      margin: 0;
    }
  }
}
